﻿cmake_minimum_required(VERSION 2.8)
project(TestOsgQt)
add_subdirectory(osgQt)
set(CMAKE_AUTOMOC ON)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(OSG REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets OpenGL)
include_directories(. ${OSG_INCLUDE_DIR})
list(APPEND lib_libs ${OPENSCENEGRAPH_LIBRARIES} osgQOpenGL Qt5::Core Qt5::Widgets Qt5::OpenGL)
add_executable(${PROJECT_NAME} widget.h widget.cpp main.cpp)
target_link_libraries(${PROJECT_NAME} ${lib_libs})
file(COPY world.tif simple.earth DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")